package com.xms.security.core;

/**
 * <p>
 * RoleMemberShipType
 * </p>
 *
 * @author migo
 * @since 2021/10/20
 */
public enum RoleMemberShipType {
    USER(1, "user"),
    TEAM(2, "team");

    RoleMemberShipType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public boolean equals(RoleMemberShipType compared) {
        return this.value() == compared.value();
    }

    public int value() {
        return value;
    }

    public String text() {
        return name;
    }

    private int value;
    private String name;
}
